package com.ourchem.bus.feign;


import com.ourchem.bus.conf.NacosDataFeignConfig;
import com.ourchem.bus.conf.NacosDataFeignConfig2;
import com.ourchem.data.api.file.FileCollection;
import com.ourchem.data.api.file.PatentCollection;
import com.ourchem.data.api.query.BatchQuery;
import com.ourchem.data.api.query.QueryParam;
import com.ourchem.data.api.query.SearchClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "nacos-data-pro", url = "${datacenter.url:}", configuration = NacosDataFeignConfig2.class)
public interface ProDataFeignService extends SearchClient {

    @PostMapping({"/data/search/query"})
    String search(QueryParam queryParam);


    @PostMapping("/data/search/query/batch/")
    String batchSearch(BatchQuery batchQuery);

    @PostMapping("/data/file/list/files")
    String getPatentPics(PatentCollection collection);

}
